package model;

import java.awt.Color;
import java.io.Serializable;

public class Chess implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int x,y;
	private Color color;
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public Color getColor() {
		return color;
	}
	public void setColor(Color color) {
		this.color = color;
	}
	
	public boolean equalColor(Chess chess){
		return this.color.getRGB()==chess.getColor().getRGB();
	}
	
	public boolean equalColor(Color color){
		return this.color.getRGB()==color.getRGB();
	}
}
